<?php


namespace app\index\controller;


use think\Request;

class RequestTest
{

    protected $request;

    public function __construct(Request $request)
    {
        $this->request = $request;
    }

    public function index()
    {
        dump($this->request);
        return $this->request->param("name");
    }
}